<h2 class="title">自购物资管理</h2>
<table class="tb_term" width="100%">
<tr>
	<td class="alignright">自购单号</td>
	<td colspan=3><input type=text name="materials_no"value='{%$materials_no%}' class="input_edit_stand txt-normal" readonly></td>
</tr>
<tr>
	<td class="tr_td_width01 alignright">预算金额</td>
	<td class="tr_td_width03"><input type=text name="budget_amount"  value='{%$budget_amount%}' class="input_browse_num txt-normal" readonly><label class="label01">万元</label></td>
	<td class="tr_td_width02 alignright">实际金额</td>
	<td><input type=text name="actual_amount"  value='{%$actual_amount%}' class="input_browse_num txt-normal" readonly><label class="label01">万元</label></td>
</tr>
<tr>
	<td class="alignright">经办日期</td>
	<td><input type=text name="materials_time" class="input_date_browse txt-normal" size="25" id="materials_time"   value='{%$materials_time|date_format:"%Y-%m-%d"%}' readonly></td>
	<td class="alignright">经办人</td>
	<td>
		<select name="admin_user_id"  class="select_edit txt-normal" readonly>
			{%html_options options=$admin_info selected=$admin_user_id%}
		</select>
	</td>
</tr>
<tr>
	<td class="alignright">备注</td>
	<td colspan="3"><textarea cols="70" rows="3" class="textarea_browse txt-normal"  name="materials_info" readonly>{%$materials_info%}</textarea></td>
</tr>
</table>
<p class="btn_right">	
	<button type="button" class="b-default"  hidefocus="true" onclick="window.location.href='index.php?c=zy_materials_from_list&m=add&materials_from_id={%$smarty.get.materials_from_id%}'"><span><em>添加</em></span></button>
	<button type="button" class="b-default"  hidefocus="true" onclick="window.location.href='index.php?c=zy_materials_from'"><span><em>返回</em></span></button>
</p>
<h2 class="title">物资明细</h2>
<table class="tb_list" width="100%">
<tr class="title">
	<td class="list_td_zw_10">物资名称</td>
	<td>规格型号</td>
	<td class="list_td_zw_02">数量</td>
	<td class="list_td_zw_02">单位</td>
	<td class="list_td_zw_03">单价</td>
	<td class="list_td_zw_03">总价</td>
	<td class="list_td_zw_06">付款方式</td>
	<td class="list_td_zw_10">所属项目</td>
	<!--<td class="list_td_zw_10">合同号</td>-->
	<td class="list_td_zw_opt03">操作</td>
</tr>
{%foreach from=$materials_arr item=list%}
<tr>
	<td class="alignleft">{%$list.materials_name%}</td>
	<td class="alignleft">{%$list.specification%}</td>
	<td>{%$list.number%}</td>
	<td>{%$list.m_unit%}</td>
	<td class="alignleft">{%$list.price%}</td>	
	<td class="alignleft">{%$list.price * $list.number%}</td>	
	<td class="alignleft">{%$pay_type_arr[$list.pay_type]%}</td>
	<td class="alignleft">{%cut_str str=$project_arr[$list.project_id] sublen=10%}</td>
	<!--<td>{%$list.contract_no%}</td>-->
	<td>
		<a href='index.php?c=zy_materials_from_list&m=edit&is_show=1&list_id={%$list.list_id%}&materials_from_id={%$list.materials_from_id%}'>查看</a>&nbsp;
		<a href='index.php?c=zy_materials_from_list&m=edit&list_id={%$list.list_id%}&materials_from_id={%$list.materials_from_id%}'>修改</a>&nbsp;
		<a href='index.php?c=zy_materials_from_list&m=del&list_id={%$list.list_id%}&materials_from_id={%$smarty.get.materials_from_id%}' onclick="return confirm('您确定要删除吗？');" >删除</a>
	</td>
</tr>
{%foreachelse%}
<tr><td colspan="9">暂无内容</td></tr>
{%/foreach%}
</table>